package com.lcf.feign.service;

import com.lcf.common.dto.DictTableDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

import static com.lcf.base.constant.SysConstant.DICT_TABLE_DYNAMIC_FEIGN_PATH;

/**
 * 表翻译动态feign
 *
 * @author lcf
 */
@FeignClient(name = "dict-table-dynamic", path = DICT_TABLE_DYNAMIC_FEIGN_PATH)
public interface DictTableDynamicFeignClient {
    /**
     * 执行动态表查询并返回主键映射结构
     */
    @PostMapping("tableMapping")
    Map<String, Map<String, Object>> queryTableMapping(@RequestBody DictTableDTO dictTable);
}
